<template>
    <div class="base">
        <div class="box">
            <div class="box-header">
                <div class="title">
                    <img src="../../assets/img/trophies.png" alt="">
                    <p>第18届江南雅苑杯麻将邀请赛</p>
                    <img src="../../assets/img/trophies.png" alt="">
                </div>
                <div class="rule-text gray">初赛记录表格--每桌第1名出线，获得复赛资格。</div>
                <div class="record-text">
                    <p>2024年9月24日</p>
                    <p><span class="gray">裁判长签字：</span>聂卫平</p>
                </div>
            </div>
            <div class="box-body">
                <img src="../../assets//img/green-bg.png" alt="" class="box-bg">
                <div class="table-title">
                    <div class="table-num">
                        <img src="../../assets/img/table-green-line.png" alt="">
                        <div class="tag">第4桌</div>
                    </div>
                </div>
                <div class="table-body">
                    <div class="table-header">
                        <div class="cell">
                            参赛选手<br />
                            参赛内容
                        </div>
                        <div class="cell">选手昵称</div>
                        <div class="cell">选手昵称</div>
                        <div class="cell">选手昵称</div>
                        <div class="cell">选手昵称</div>
                    </div>
                    <div class="table-row">
                        <div class="cell">比赛得分</div>
                        <div class="cell">333</div>
                        <div class="cell">656</div>
                        <div class="cell">999</div>
                        <div class="cell">128</div>
                    </div>
                    <div class="table-row">
                        <div class="cell">比赛名次</div>
                        <div class="cell">3</div>
                        <div class="cell">2</div>
                        <div class="cell">1</div>
                        <div class="cell">4</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
        };
    },
    activated() {
    },
    created() {

    },
    mounted() {
    },
    methods: {

    },
};
</script>

<style lang="less" scoped>
.base {
    background-color: #f3f0f6;
    height: 100%;

    .box {
        padding: 0 20px;
        background-color: #ffffff;
        color: #000;
        font-size: 0.35rem;
        font-weight: 700;
        line-height: 2;

        .box-header {
            .gray {
                color: #585d5c;
            }

            padding: 0.275rem;

            .title {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 0.125rem 0;
                font-size: 0.35rem;
                font-weight: 700;
                text-align: center;

                img {
                    height: 0.55rem;
                }

                p {
                    margin: 0 0.1875rem;
                }
            }

            .rule-text {
                margin-bottom: 0.575rem;
                font-size: 0.3rem;
                text-align: center;
            }

            .record-text {
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 0.3rem;
            }
        }

        .box-body {
            position: relative;
            border-radius: 0.325rem;
            box-shadow: 0px 0.0625rem 0.65rem 0.0625rem rgba(134, 134, 134, 0.2);

            .box-bg {
                position: absolute;
                top: 0;
                left: 0;
                height: 2.75rem;
            }

            .table-title {
                display: flex;
                justify-content: flex-end;
                margin-bottom: 16px;
                padding: 0.3125rem 0.625rem;

                .table-num {
                    position: relative;

                    img {
                        display: block;
                        height: 1.025rem;
                    }

                    .tag {
                        position: absolute;
                        top: 50%;
                        left: 0;
                        transform: translate(1.5rem, -50%);
                        color: #62c273;
                        font-size: 0.325rem;
                    }
                }
            }

            .table-body {
                display: grid;
                grid-template-columns: repeat(5, 1fr);
                border-collapse: collapse;

                .table-header {
                    display: contents;
                    font-size: 0.325rem;
                    font-weight: 400;
                    text-align: center;

                    .cell {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: 10px 8px;
                        border: 1px solid #ddd;
                        border-left: none;
                    }

                    .cell:last-child {
                        border-right: none;
                    }
                }

                .table-row {
                    display: contents;
                    font-size: 0.3rem;
                    font-weight: 400;
                    text-align: center;

                    .cell {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        padding: 10px 8px;
                        border-right: 1px solid #ddd;
                    }

                    .cell:last-child {
                        border-right: none;
                    }
                }
            }
        }
    }
}
</style>